<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<% 
	String webpath = request.getContextPath(); 
	String path =  request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + webpath +"/";
	request.setAttribute("path", path);
%>
<html class="login-bg">
<head>
	<title>注册</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<%@ include file="../common/common.jsp" %>
	<link rel="stylesheet" href="${path}static/detail/css/compiled/signup.css" type="text/css" media="screen" />
	<style type="text/css">
		.back-image {background:no-repeat;}
	</style>
</head>
<body>
	<div class="header">
        <a href="${path}login.do">
            <img class="logo" src="${path}static/detail/img/logo.png" />
        </a>
    </div>
	<form action="${path}register.do" id="login_form" method="post">
     <div class="row-fluid login-wrapper">
     
	    <div class="row-fluid login-wrapper">
	        <div class="box">
	            <div class="content-wrap">
	                <h6>注册账号</h6>
	                 <input class="span12" type="text" placeholder="Name" name="username" />
	                <input class="span12" type="text" placeholder="E-mail address" name="email"/>
	                <input class="span12" type="password" placeholder="Password" name="password"/>
	                <div class="action">
	                    <a class="btn-glow primary signup" href="javascript:void;" onclick="login();">创建账号</a>
	                </div>                
	            </div>
	        </div>
	
	        <div class="span4 already">
	            <p><a href="${path}login.do" style="color:blue;">忘记密码 </a></p>&nbsp; 
	            <p><a href="${path}login.do" style="color:blue;">登录</a></p>
	        </div>
	    </div>
	 </div>
</form>

	
    <!-- pre load bg imgs -->
    <script type="text/javascript">
       
        function login(){
        	var username = $("#username").val();
        	if(username==undefined || username==null || username==""){
        		$("#login_msg").text("");
        		$("#login_msg").text("用户名不能为空!");
        		return false;
        	}
        	var password = $("#password").val();
			if(password==undefined || password==null || password==""){
				$("#login_msg").text("");
        		$("#login_msg").text("密码不能为空!");
        		return false;
        	}
			$("#login_form").submit();
        }
    </script>
</body>
</html>